package routers

import (
	"ay-activity/controller"
	"github.com/gin-gonic/gin"
)

func DefaultRoutersInit(r *gin.Engine) {
	defaultRouters := r.Group("/")
	{
		defaultRouters.GET("/", controller.HomeController{}.Home)
		//defaultRouters.GET("/", controller.DefaultController{}.Index)
		defaultRouters.POST("/api/batchRename", controller.FileController{}.ReName)
		defaultRouters.POST("/api/userLogin", controller.UserLogin{}.AuthLogin)
		defaultRouters.POST("/api/userInfo", controller.UserInfo{}.GetUserInfo)
	}
}
